//
//  BKCommentView.h
//  XPhoto
//
//  Created by baboy on 2019/7/3.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "BKView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol BKCommentViewDelegate;

@interface BKCommentView : BKView
@property(nonatomic, strong) IBOutlet UIView *backgroundView;
@property(nonatomic, strong) IBOutlet UIView *bottomPannel;
@property(nonatomic, strong) IBOutlet UITextView *textView;
@property(nonatomic, strong) IBOutlet UIView *textViewBackgoundView;
@property(nonatomic, strong) IBOutlet UIButton *sendButton;
@property(nonatomic, strong) IBOutlet UIButton *iconButton;
@property(nonatomic, strong) _Nullable id userInfo;

@property(nonatomic, assign) id<BKCommentViewDelegate> delegate;
- (void)layoutSubviewsWithKeyboardPopup:(BOOL)keyboardPopup;
+ (id)view;
- (void)showWithText:(NSString * _Nullable)text;
- (void)show;
- (void)hide;
- (IBAction)clickSendButton:(id)button;
@end
@protocol BKCommentViewDelegate <NSObject>
@optional
- (void)commentView:(BKCommentView *)view didClickedSendButton:(id)button;
- (BOOL)textViewShouldBeginEditing:(BKCommentView *)view;
- (BOOL)textViewShouldEndEditing:(BKCommentView *)view;
@end
NS_ASSUME_NONNULL_END
